package com.wht.service;

import com.wht.domain.Music;
import com.wht.mapper.MusicMapper;
import com.wht.mapper.MusicSingerMapper;
import com.wht.utils.MyBatisUtils;

/**
 * @author wanghaotian
 * time:2022/11/28,0028 16:28
 * description:
 */

public class AddMusicServiceImpl implements AddMusicService {
    @Override
    public void addMusic(Music music) {
        MusicMapper mapper = MyBatisUtils.getMapper(MusicMapper.class);
        mapper.insertMusic(music);
        MyBatisUtils.commit();
    }
}
